function exportTo(ext, report, title, ops) {
    if (ext == 'xls') {
        var url = 'pdf.jsp?report='+report+'&title='+encodeURIComponent(title)+'&orientacion=0'+ops;
        var ajax = new Ajax();
        ajax.execGET('createExcel='+encodeURIComponent(url)+'&file='+report+'.xls');
        ajax.onresponse = function() {
            alert(this.response);
        }
    }
}